/**
 * Created by 鄢鹏权 on 2017/04/26.
 */
namespace Avalon{
    export class Report{
        $id:string='Report';
        Type:string='';
        DICs={};
        Where={

        };
        Report={

        };
        Config={

        };
        init_DICs=function () {

        };
        init=function () {
          this.init_DICs();
        };
        ready:Function=function (n,p) {
            
        };
        report=function (Obj,Name,Params) {
            Castle.Request.post.apply(this,[Config.getRequestUrl(Obj,'report'),{
                Name:Name,
                Params:Params
            },function (d) {
                if(this.Report[Obj]==undefined){
                    this.Report[Obj]={}
                }
                this.Report[Obj][Name]=d;
            },function (e) {
                System.warning('获取报表发生错误');
            }]);
        }
    }
}